package xginxcron

import (
	"gitee.com/xiaoyutab/xgotool/optional/xcron"
	"gitee.com/xiaoyutab/xgotool/xgin"
	"github.com/gin-gonic/gin"
)

// 重启所有轮询任务
//
//	GET	/restart
func restart(c *gin.Context) *xgin.Response {
	xcron.Restart()
	return xgin.Resp().SuccessEmpty()
}
